<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%--引入jstl核心库--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Dept</title>
    <style>
        td {
            width: 100px;
        }
    </style>
</head>
<body>
<table border="1" cellpadding="1">
    <tr>
        <th>序号</th>
        <th>DEPTNO</th>
        <th>DNAME</th>
        <th>OPERATION</th>
    </tr>
    <c:forEach items="${depts}" var="dept" varStatus="state">
        <tr>
            <td>${state.count}</td>
            <td>${dept.deptId}</td>
            <td>${dept.deptName}</td>
            <td>
                <a href="">修改</a>
                <a href="/delete?id=${dept.deptId}">删除</a>
            </td>
        </tr>

    </c:forEach>
</table>
</body>
</html>
